package com.rfouchet.movie.allocineapi;

import java.io.File;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;

public class AllocineParser {

	public final static String URL_SEARCH = "http://api.allocine.fr/xml/search";

	public AllocineParser() {

	}

	public void unmarshal(String string) {

		try {
			JAXBContext jc = JAXBContext.newInstance("org.w3._2005.atom");
			Unmarshaller unm = jc.createUnmarshaller();
			Object ml = (Object) unm.unmarshal(new File(string));
			System.out.println(ml);
		} catch (JAXBException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
